import request from '@/utils/request'

// 查询刑事责任，用于记录刑事责任的相关信息列表
export function listResponsibility(query) {
  return request({
    url: '/personal/responsibility/list',
    method: 'get',
    params: query
  })
}

// 查询刑事责任，用于记录刑事责任的相关信息详细
export function getResponsibility(Id) {
  return request({
    url: '/personal/responsibility/' + Id,
    method: 'get'
  })
}

// 新增刑事责任，用于记录刑事责任的相关信息
export function addResponsibility(data) {
  return request({
    url: '/personal/responsibility',
    method: 'post',
    data: data
  })
}

// 修改刑事责任，用于记录刑事责任的相关信息
export function updateResponsibility(data) {
  return request({
    url: '/personal/responsibility',
    method: 'put',
    data: data
  })
}

// 删除刑事责任，用于记录刑事责任的相关信息
export function delResponsibility(Id) {
  return request({
    url: '/personal/responsibility/' + Id,
    method: 'delete'
  })
}
